//
//  OrderVC.m
//  HappyRent
//
//  Created by CoderYee on 2017/3/30.
//  Copyright © 2017年 内圈科技. All rights reserved.
//

#import "OrderVC.h"
#import "Order_SubVC.h"    //订单SubVc
#import "YeeContainScrollView.h" //
@interface OrderVC ()
{
    
    
}
@end

@implementation OrderVC

-(void)addNavbarView{
    
    [super addNavbarView];
    self.title=@"我的订单";
}
-(void)configOwnViews{
    
    [super configOwnViews];
}
-(void)addOwnViews{
    
    [super addOwnViews];
    [self addContainView];
}

#pragma mark 添加子类视图
-(void)addContainView{
    
    NSArray *titleArray=@[@"待付款",@"待收货",@"待评价"];
    NSMutableArray  *views=[[NSMutableArray alloc] init];
    for (NSInteger i=0; i<3; i++) {
        
        Order_SubVC *Vc=[[Order_SubVC alloc] init];
        [views addObject:Vc.view];
        [self addChildViewController:Vc];
        
    }
    YeeContainScrollView  *scollView=[[YeeContainScrollView alloc] initWithFrame:self.view.bounds  withViews:views withTitles:titleArray];
    [self.view addSubview:scollView];
    
}
@end
